# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=xml2rfc
pkgver=3.23.2
pkgrel=0
pkgdesc="tool for converting XML documents into internet drafts and RFCs"
options="!check" # Requires unpackaged i18naddress
url="https://github.com/ietf-tools/xml2rfc"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-six py3-requests py3-lxml"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/x/xml2rfc/xml2rfc-$pkgver.tar.gz"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 test.py
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
8aa847543561408c9baae02371451a3f0c9f1a6e2630e33619a518fa9ac5b5b63fd619e0ed75b220885acfd4c996a62aa1f29e9df3960377205941d612d958de  xml2rfc-3.23.2.tar.gz
"
